package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/shuttleBus/controller"
	"gowork/shuttleBus/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	sbc := new(controller.ShuttleBusController)
	app.Post("/createRoute", sbc.CreateRoute)
	app.Post("/queryRoute", sbc.QueryRoute)
	app.Post("/appointmentShuttleBus", sbc.AppointmentShuttleBus)
	app.Post("/shuttleBus", sbc.ShuttleBus)
	app.Post("/byCar", sbc.ByCar)

	app.Listen(5208)
}


